import request from '@/request'

// 查询参数列表
export function listAntiFraudArticles(query) {
  return request({
    url: '/resources/antiFraud/list',
    method: 'get',
    params: query
  })
}

export function listHotAntiFraudArticles(query) {
  return request({
    url: '/resources/userFunctions/hotAntiFraudArticles/list',
    method: 'get',
    params: query
  })
}
// 查询参数详细
export function getAntiFraudArticles(antiFraudId) {
  return request({
    url: '/resources/antiFraud/' + antiFraudId,
    method: 'get'
  })
}

// 新增参数配置
export function addAntiFraudArticles(data) {
  return request({
    url: '/resources/antiFraud',
    method: 'post',
    data: data
  })
}

// 修改参数配置
export function updateAntiFraudArticles(data) {
  return request({
    url: '/resources/antiFraud',
    method: 'put',
    data: data
  })
}

// 删除参数配置
export function delAntiFraudArticles(antiFraudId) {
  return request({
    url: '/resources/antiFraud/' + antiFraudId,
    method: 'delete'
  })
}
